package com.ruoyi.system.domain.zhuangxiumain.orderformMain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderRetreat extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 退货表的id
	 */
	@TableId(type = IdType.AUTO)
	private Integer orderRetreatId;

	/**
	 * 订单表的id
	 */
	private Integer orderId;

	/**
	 * 退货人的id
	 */
	private Integer customerId;

	/**
	 * 退货的原因
	 */
	private String orderRetreatReason;

	/**
	 * 退货的凭证图片
	 */
	private Integer orderRetreatPicture;

	/**
	 * 退货的申请时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderRetreatApplicationTime;

	/**
	 * 退货的审核时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderRetreatAuditTime;

	/**
	 * 退货的状态0未审核，1通过，2未通过
	 */
	private Integer orderRetreatStatus;

	/**
	 * 审核未通过的原因
	 */
	private String orderRetreatFailedReason;

	/**
	 * 商家的id
	 */
	private Integer supplierId;

	/**
	 * 退货凭证图片实体list
	 */
	private List<OrderPicture> list;

	@TableField(exist = false)
	private List fileList;
	@TableField(exist = false)
	private List<Map<String,Object>> urlList;
	@TableField(exist = false)
	private String img0;
	@TableField(exist = false)
	private String img1;
	@TableField(exist = false)
	private String img2;
	@TableField(exist = false)
	private String img3;


}
